<html>

	<head>
		<include file="Public/head" />
		<title>路线详情--{$config['store_name']}</title>
		<!-- BEGIN 样式文件 -->
		<link href="__STATIC__/css/dingzhixl_detail.css" rel="stylesheet" type="text/css">
		<!-- END 样式文件 -->
		<!-- BEGIN JS文件 -->

		<script src="__STATIC__/js/function/dingzhixl_detail.js" type="text/javascript"></script>
		<script src="__PUBLIC__/js/laydate/laydate.js" type="text/javascript"></script>
		<!-- END JS文件 -->
	
	</head>
	<style>
		.top_bg {
			position: relative;
			margin-top: 0px;
		}
		.header-top {
			position: relative;
			height: 30px;
			
			
		}
	.Address a:hover{
		
		text-decoration: none;
	}
	</style>

	<body>
		<include file="Public/header" />
		<!-- BEGIN 正式页面 -->
		<div class="UMain">
			<div class="THshowbox">
				<div class="Addressbox">
					<div class="Address w">
						<a href="{:U('Home/Index/Index')}" name="detail-mianbaoxie-shouye">首页</a>
						<em>&gt;</em> <a href="{:U('Home/Product/lists')}" >线路</a> <em>&gt;</em>{$baseinfo.name}
					</div>
				</div>
				<div class="box_blank"></div>
				<div class="T_secion clearfix w">
					<div class="frbox clearfix">
						<!--焦点图-->
						<div class="ltfoucs left">
							<div class="jdbox">
								<div class="ban" id="demo1">
									<div class="ban2" id="ban_pic1">
										<ul style="width: 4080px; height: 2700px; left: -680px;">
											<volist name="baseinfo.pictures" id="vo">
												<li style="float: left;">
													<a href="javascript:;"><img src="{$vo}" width="680" height="450"></a>
												</li>

											</volist>
										</ul>
									</div>
									<div class="min_pic">
										<div class="prev_btn1" id="prev_btn1">
											<span class="thotelicon"></span>
										</div>
										<!--<volist name="baseinfo.pictures" id="vo">
													<li class="" style="float: left;">
														<a href="javascript:;" name="detail-huandengpian-qiehuan"><img src="{$vo}" width="114" height="76" ></a>
													</li>
												</volist>-->
										<div class="num clearfix" id="ban_num1">
											<ul style="width: 744px; height: 504px; left: 0px;">
												<volist name="baseinfo.pictures" id="vo">

													<li class="" style="float: left;">
														<a href="javascript:;" name="detail-huandengpian-qiehuan"><img src="{$vo}" width="114" height="76"></a>
													</li>
												</volist>
											</ul>
										</div>
										<div class="next_btn1" id="next_btn1">
											<span class="thotelicon"></span>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!--焦点图右边-->
						<div class="funcbox funcbox_top right">
							<div class="pro_tit">
								<h1><span class="pro_style pro_style_dz"></span>{$baseinfo.name} <div class="showtitle n"></div></h1>
							</div>
							<div class="pro_price">
								<ul class="clearfix">
									<li>
										<div class="price_tag left">
											热销<i></i>
										</div>
										<div class="price_num left">
											<strong>¥<b>{$baseinfo.price}</b>/人起</strong>
										</div>
										<a class="left moretc hovers">
											<div class="hovers_tab">
												<div class="hovers_tabmain">
													<i></i>
													<!--<div class="hovers_b">
													<p>
														<span class="red f12">¥</span>
														<span class="red f20">22,000</span>
														<span class="red">/人起</span>
														<span class="right">2人同行</span>
													</p>
													<p>
														<span class="red f12">¥</span>
														<span class="red f20">22,000</span>
														<span class="red">/人起</span>
														<span class="right">4人同行</span>
													</p>
													<p>
														<span class="red f12">¥</span>
														<span class="red f20">22,000</span>
														<span class="red">/人起</span>
														<span class="right">6人同行</span>
													</p>
												</div>-->
												</div>
											</div>
										</a>
									</li>
								</ul>
							</div>
							<p class="dz_tishi_r pr30">
							<!--	此价格为淡季预估参考价格，最终价格视实际情况而定-->
							</p>
							<div class="funcbox_cfd funcbox_dingzhi">
								<div class="cfdin">
									<span></span>出发地<em>{$baseinfo.startplace}</em>
								</div>
							</div>
							<div class="funcbox_ld clearfix">
								<div class="fuctit">
									<span class="fucicon_ld"></span>产品主题
								</div>
								<div class="txt_ld">
									<if condition="$baseinfo['topic'] eq 'home'"><span>家庭亲子</span></if>
									<if condition="$baseinfo['topic'] eq 'couple'"><span>蜜月之行</span></if>
									<if condition="$baseinfo['topic'] eq 'classic'"><span>经典畅游</span></if>
									<if condition="$baseinfo['topic'] eq 'food'"><span>美酒美食</span></if>
									<if condition="$baseinfo['topic'] eq 'sport'"><span>运动探险</span></if>
								</div>
							</div>
							<div class="funcbox_ly uthing_tj">
								<div class="inly_box_r">
									<div class="fuctit">
										<span class="fucicon_ly"></span>我们推荐
									</div>
									<div class="tjlist">
										<dl>
											<dt>
												酒店：
											</dt>
											<dd>
												{$baseinfo['hotel_intro']}
											</dd>
											<dt>
												车导：
											</dt>
											<dd>
												{$baseinfo['guide_intro']}
											</dd>
											<dt>
												航班：
											</dt>
											<dd>
												{$baseinfo['flight_intro']}
											</dd>
											<dt>
												亮点：
											</dt>
											<dd class="h100">
												<div class="scrollbar-rules">
													<div class="scrollbar" style="height: 120px;">
														<div class="track" style="height: 120px;">
															<div class="thumb" style="top: 0px; height: 104.348px;"></div>
														</div>
													</div>
													<div class="viewport">
														<div id="load-rule-1" class="overview" style="top: 0px;">
															<p>
																{$baseinfo['feature']}
															</p>
														</div>
													</div>
												</div>
											</dd>
										</dl>
									</div>
								</div>
							</div>
							<div class="mt15 clearfix">
								<div class="collectbtn left">
									<span></span> 收藏
								</div>

							</div>
						</div>
					</div>

					<div class="frbox clearfix" style="border-top: 1px solid #CCCCCC;">

						<div class="funcbox left">
							<div class="funcbox_tclx">
								<div class="lxbox">

									<div class="detail">
										<dl class="clearfix mb15">
											<dt>出发日期</dt>
											<dd>
												<div class="mb10 clearfix date_calendarbox">
													<div id="order_date" class="laydate-icon"></div>

													<script>
														laydate({
															elem: '#order_date',
															min: laydate.now(-1), //-1代表昨天，-2代表前天，以此类推
															max: '2099-06-16 23:59:59', //+1代表明天，+2代表后天，以此类推
														});
													</script>

												</div>
											</dd>
										</dl>
										<dl class="clearfix mb15">
											<dt>出行人数</dt>
											<dd>
												<div class="mb10 clearfix">
													<span class="tb-stock">
										<em class="jian" onclick="plus_minus('minus');">-</em>
									
										<input type="text" readonly="true" value="1" id="people_num" autocomplete="OFF" >
										<em class="jia" onclick="plus_minus('plus');">+</em>
										</span>

													<strong class="ddstr"><em>¥ {$baseinfo['price']}</em>/成人</strong>
												</div>
												<div id="child_div" style="display:none;">
													<span class="tb-stock">
										<em class="jian" onclick="plus_minus('child','minus');">-</em>
										<input type="text" readonly="true" value="0" id="child" autocomplete="OFF" name="child">
										<em class="jia" onclick="plus_minus('child','plus');">+</em>
										</span>
													<strong class="ddstr"><em>¥ </em>/儿童 </strong>
												</div>
											</dd>
										</dl>
										<dl class="clearfix pb5">
											<dt>房间数量</dt>
											<dd>
												<div class="clearfix">
													<span class="tb-stock">
										<em class="jian" onclick="plus_minus_room('minus')">-</em>
										<input type="text" readonly="true" value="1" id="room_num" name="room_num" autocomplete="OFF">
										<em class="jia" onclick="plus_minus_room('plus')">+</em>
										</span>
												</div>
											</dd>
										</dl>
									</div>
									</form>
									<div class="pricebox clearfix">
										<div class="prileft2" id="pri">
											<span style="float:left; margin-top:4px">总价：</span>
											<em id="total_price"><i>¥</i>{$baseinfo['price']}</em>
											<p class="dfc" style="display: none;"></p>
										</div>
										<div class="newsmbitbtn"><a href="javascript:;" onclick="sub();" name="detail-lijiyuding-guding">立即预订</a></div>
									</div>
									<div class="buyalltc">
										<p class="p_1" id="notice_msg">请至少选择一间房</p>
										<p class="p_2"><span class="qrtcbtn">确定</span></p>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!-- 游心品质服务 -->
					<div class="w pzfw">
						<div class="pzfw_title"></div>
						<div class="w562 left">
							<div class="pzfw_num pzfw_left left">准备旅途</div>
							<ul class="mt40">
								<!--如果大于三条，去掉ul的类名-->
								<if condition="$baseinfo['prepare']['charge'] eq 'on'">
									<li><i class="icon_news icon_zhct"></i><span>充电器</span></li>
								</if>
								<if condition="$baseinfo['prepare']['switcher'] eq 'on'">
									<li><i class="icon_news icon_zhct"></i><span>转换接头</span></li>
								</if>
							</ul>
						</div>
						<div class="w562 right">
							<div class="pzfw_num pzfw_right left">享受旅途</div>
							<ul class="xslt">
								<if condition="$baseinfo['services']['pick'] eq 'on'">
									<li class="hovers"><i class="icon_news icon_jj"></i><span>接机</span><i class="right_arr"></i></li>
								</if>
								<if condition="$baseinfo['services']['flight'] eq 'on'">
									<li class="hovers"><i class="icon_news icon_hbs"></i><span>航班</span><i class="right_arr"></i></li>
								</if>
								<if condition="$baseinfo['services']['hotel'] eq 'on'">
									<li class="hovers"><i class="icon_news icon_jds"></i><span>酒店</span><i class="right_arr"></i></li>
								</if>
								<if condition="$baseinfo['services']['cartype'] eq 'on'">
									<li class="hovers"><i class="icon_news icon_cx"></i><span>车型</span><i class="right_arr"></i></li>
								</if>
								<if condition="$baseinfo['services']['car'] eq 'on'">
									<li class="hovers"><i class="icon_news icon_lyyc"></i><span>旅行中用车</span><i class="right_arr"></i></li>
								</if>

							</ul>
						</div>
						<div class="clear"></div>
					</div>
				</div>
				<div class="w">
					<div class="Tripdetailnav">
						<div class="Tripdetail Tripdetail_dzh">
							<ul class="clearfix">
								<li class="cur"><a href="#t_jt" class="t_jt" name="detail-jiaotong"><h3>产品详情</h3></a><em></em></li>
								<li><a href="#t_travel" class="t_travel"><h3>行程安排</h3></a><em></em></li>
								
								<li><a href="#t_cost" class="t_cost" name="detail-feiyong"><h3>费用说明</h3></a><em></em></li>
								<li><a href="#t_xz" class="t_xz" name="detail-xuzhi"><h3>预订须知</h3></a><em></em></li>
							</ul>
							<div class="price tprice">¥{$baseinfo['price']}</div>
							<div class="Reservation Reservation_dzh " style="display: block;"><a class="btn1" href="javascript:;" onclick="sub();" name="detail-lijiyuding-gundong">立即预订</a></div>

						</div>
					</div>
					<!-- modify add -->
					<div style="height:0;overflow:hidden;"></div>
					<div class="Tripdetailbox_dz">
						<!--交通-->
						<div class="whitebg" id="t_jt">
							<div class="part_tit"><span class="part_jt"></span>交通信息</div>
							<div class="jtbox">
								<table width="100%" border="0">
									<tbody>
										<tr class="t_head">
											<td width="95">去/返航班</td>
											<td width="160">航班号</td>
											<td>航班信息</td>
											<td>航空公司</td>
											<td width="95">座舱</td>
										</tr>
										<tr class="td_blank">
											<td colspan="5">&nbsp;</td>
										</tr>
										<tr>
											<td class="lb">去程<br>（第1天）</td>
											<td>{$trafficinfo['to']['flightnum']}</td>
											<td>
												<div class="jcd"><strong class="s_l">{$trafficinfo['to']['startplace']}<br>{$trafficinfo['to']['starttime'] }起飞</strong><span></span><strong class="s_r">{$trafficinfo['to']['endplace']} <br>{$trafficinfo['to']['endtime']} 抵达</strong></div>
											</td>
											<td>{$trafficinfo['to']['company']}</td>
											<td class="rb">--</td>
										</tr>
										<tr class="td_blank">
											<td colspan="5">&nbsp;</td>
										</tr>
										<tr>
											<td class="lb">返程<br>（第6天）</td>
											<td>{$trafficinfo['end']['flightnum']}</td>
											<td>
												<div class="jcd"><strong class="s_l">{$trafficinfo['end']['startplace']}<br>{$trafficinfo['end']['starttime']} 起飞</strong><span></span><strong class="s_r">{$trafficinfo['end']['endplace']}<br>{$trafficinfo['end']['endtime'] }抵达</strong></div>
											</td>
											<td>{$trafficinfo['end']['company']}</td>
											<td class="rb">--</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<!--酒店信息-->
						<div class="whitebg" id="t_hotel">
							<div class="part_tit part_tit_ht"><span class="part_ht"></span>酒店信息</div>
							<div class="htbox">
								<div class="boxhotel clearfix" style="border: 0px;">
									<div class="ht_left">
										<div class="t_box">
											<div class="t_1"><strong>{$trafficinfo['hotel']['name']}</strong>
												<if condition="$trafficinfo['hotel']['star'] eq 'onestar' "><span class="newstar newstar_1"></span> </if>
												<if condition="$trafficinfo['hotel']['star'] eq 'twostar' "><span class="newstar newstar_2"></span> </if>
												<if condition="$trafficinfo['hotel']['star'] eq 'threestar' "><span class="newstar newstar_3"></span> </if>
												<if condition="$trafficinfo['hotel']['star'] eq 'fourstar' "><span class="newstar newstar_4"></span> </if>
												<if condition="$trafficinfo['hotel']['star'] eq 'fivestar' "><span class="newstar newstar_5"></span> </if>
											</div>

											<div class="t_2"><strong title="Fiesta Resort &amp; Spa Saipan">{$trafficinfo['hotel']['ename']}</strong></div>
										</div>
										<div class="t_3">{$trafficinfo['hotel']['position']}<span></span></div>
										<h3>酒店介绍</h3>
										<div class="text">{$trafficinfo['hotel']['intro']}
											<!--<span class="morebtn" data-id="4846">了解更多</span>--></div>
									</div>
									<div class="ht_right">
										<div class="htzsbox">
											<div class="flex-viewport" style="overflow: hidden; position: relative;">
												<ul class="slides" style="width: 1200%; transition-duration: 0.6s; transform: translate3d(-2104px, 0px, 0px);">
													<volist name="trafficinfo['hotel']['images']" id="vo" key="i">

														<li class="clone" aria-hidden="true" style="width: 526px; float: left; display: block;">
															<a href="javascript:;"> <img src="{$vo}" width="526" height="348" draggable="false">{$i}</a>
														</li>

													</volist>

												</ul>
											</div>
											<ol class="flex-control-nav flex-control-paging">
												<li><a class="">1</a></li>
												<li><a class="">2</a></li>
												<li><a class="">3</a></li>
												<li><a class="flex-active">4</a></li>
											</ol>
											<ul class="flex-direction-nav">
												<li><a class="flex-prev" href="#">上一个</a></li>
												<li><a class="flex-next" href="#">下一个</a></li>
											</ul>
										</div>
									</div>
								</div>
								<!--酒店弹窗-->
								<div class="httcbox">
									<div class="triphotel_dztc">
										<div class="triphotel_dztc_in">
											<div class="dztcoffbtn"></div>
											<div class="t_1 tan_name"></div>
											<div class="t_2 tan_en_name"></div>
											<div class="txtboxs">
												<div class="Focusbox_dztc" id="flashplay_dztc">
													<div class="box_dztc">
														<div class="imgs tan_image">
														</div>
														<div class="spans">
															<div class="spansimgbox">
																<div class="spansimg clearfix tan_min_image">
																</div>
															</div>
															<a href="javascript:void(0)" class="prev"><span></span></a>
															<a href="javascript:void(0)" class="next"><span></span></a>
														</div>
													</div>
												</div>
												<h3>酒店介绍</h3>
												<div class="tctext tan_detial"></div>
												<h3 class="fang_xing">房型</h3>
												<div class="house">
												</div>
												<h3 class="sheshi">酒店设施</h3>
												<div class="tctext tan_she"></div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!--导游信息-->
						<div class="whitebg">
							<div class="part_tit"><span class="part_dy"></span>导游信息</div>
							<div class="pzh_box">
								导游身份：{$trafficinfo['guide']['status']}<br> 导游经验：{$trafficinfo['guide']['exp']}
								<br> 导游类型：{$trafficinfo['guide']['type']}
								<br> 语言能力：{$trafficinfo['guide']['language']}
								<br>
							</div>
						</div>
						<!--产品详情-->
						<!--行程-->
						<div class="whitebg" id="t_travel">
							<div class="part_tit"><span class="part_xc"></span>行程安排
								<!--<i class="red">*此行程是游心为您安排的出行路线，包含在费用中，若行程不符合您的需求，可选择<a href="index.php?action=adjustment&amp;pid=20004581" class="">“调整行程”</a>，更改行程路线</i>-->
							</div>
							<div class="Trip_xc_dz">
								<div class="Trip_dayxc_dzbox">
									<volist name="schedule" id="vo" key="i">
										<div class="Trip_dayxc_dz">
											<div class="Trip_xc_date_dz">
												<span>D{$i}</span>
											</div>
											<div class="newdetailbox">
												<div class="Trip_tit">
													<span></span>
													<span>{$vo.route}</span>
												</div>
												<div class="newdetailcon">
													<label class="icon_cy"></label>
													<div class="text">餐饮： {$vo.food}</div>
												</div>
												<div class="newdetailcon">
													<label class="icon_jd"></label>
													<div class="text">酒店： <strong class="dz_tcon"> {$vo.hotel}</strong></div>
												</div>
												<div class="newdetailcon">
													<label class="icon_xch"></label>
													<div class="text">行程： {$vo.schedule}
														<p class="content">
															{$vo.content}

														</p>
													</div>
												</div>
												<div class="line"></div>
											</div>
										</div>

									</volist>

									<div class="Trip_dayxc_dz_end">
										<div class="Trip_xc_date_dz_end"><span></span></div>
									</div>
								</div>
								<div id="ico-group" class="fixdaysbox" real="" initleft="-1000px" style=" position:fixed;left:-1000px;top:50px;">
									<volist name="schedule" id="vo" key="i">

										<div class="fixdays"><span>D{$i}</span></div>
									</volist>

									<!--<div class="fixdays fixdays_last"><strong></strong><span></span></div>-->
								</div>
							</div>
						</div>
						<!--费用-->
						<div class="whitebg" id="t_cost">
							<div class="part_tit"><span class="part_fy"></span>费用说明</div>
							<div class="costbox">
								<div class="costbox_in costbox_indzh clearfix">
									<div class="leftbox">
										<h3>费用包含</h3>
										<div class="text">
											<div>1、全程往返机票，含税（机场税、其它政府税项、美国入境检验费、及燃油附加费）；</div>
											<div>2、酒店标准2人间4晚住宿（含早餐）；</div>
											<div>3、塞班机场至酒店的往返接送；<br>4、半天乘游艇出海海钓费用。</div>
										</div>
									</div>
									<div class="rightbox">
										<h3>费用不包含</h3>
										<div class="text">
											<div>1、出入境个人物品海关征税，超重行李的托运费、保管费；</div>
											<div>2、因交通延阻、*、天气、飞机、机器故障、航班取消或更改时间等不可抗力原因所导致的额外费用；</div>
											<div>3、酒店内洗衣、理发、电话、传真、收费电视、饮品、烟酒等个人消费；</div>
											<div>4、当地参加的自费以及以上“费用包含”中不包含的其它项目；</div>
											<div>5、单房差。</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!--预订须知-->
						<div class="whitebg" id="t_xz">
							<div class="part_tit"><span class="part_xz"></span>预订须知</div>
							<div class="xzbox">
								<h3>预订条款</h3>
								<div class="text">
									<div>1、18岁以下未成年人需要至少一名家长或成年旅客全程陪同；</div>
									<div>2、12周岁以下儿童不占床，如需占床按成人提交订单；</div>
									<div>3、65周岁（含）以上老年人预订出行需确保身体健康适宜旅游，并有65周岁以上家属或朋友（因服务能力所限无法接待及限制接待的人除外）全程陪同出行；</div>
									<div>4、本产品不接受孕妇客人预订；</div>
									<div>5、此产品报价是按照2成人入住1间房计算的价格。如您的订单产生单房，请在后续附加项目页面中选择单房差可选项。如您3-4人同行，且愿意多人同住（不加床）的，可在后续附加项目页面中选择多人立减可选项，无需再选择单房差。</div>
								</div>
								<h3 class="mt20">退改政策</h3>
								<div class="text">用户支付成功且商家确认出行日期后，如果因为用户或商家原因需要取消行程，按照旅游法及旅游合同相关约定进行退款。</div>
							</div>
						</div>
					</div>
				</div>
				<!--推荐开始-->
				<!--推荐开始-->
				<div class="w">
					<div class="recommenbox">
						<h3 class="title"><span class="thotelicon"></span>推荐产品</h3>
						<div class="roll" id="roll">
							<a href="javascript:void(0);" class="thotelicon btn_left"></a>
							<a href="javascript:void(0);" class="thotelicon btn_right"></a>
							<div class="wrap">
								<ul style="width: 6840px;">
									<volist name="list" id="vo">

										<li>
											<a href="{:U('details',array('id'=>$vo['id']))}" name="detail-tuijian">
												<div>
													<img src="{$vo['p_baseinfo']['logo'][0]}">
												</div>
												<div class="price">
													<div class="in">
														<span class="thotelicon inleft"></span>
														<strong><i>¥</i>{$vo['p_baseinfo']['price']}<i>起</i></strong>
														<span class="thotelicon inright"></span>
													</div>
												</div>
												<div class="bg"></div>
												<div class="text">{$vo['p_baseinfo']['name']}</div>
											</a>
										</li>

									</volist>

								</ul>
							</div>
						</div>
					</div>
				</div>
				<!--推荐结束-->
				<!--推荐结束-->
				<!--返回顶部-->
				<!--<div class="Backbox">
										<div class="plane plane_1"><a href="javascript:;" class="zxwtbtn zixun"></a></div>
										<div class="plane plane_2 clearfix">
										<a href="javascript:;"></a>
										<div class="phonebox"></div>
										</div>
										<div class="plane plane_3"><a href="#"></a></div>
										</div>-->

				<!--咨询弹窗提交-->

			</div>
			<!--收藏弹窗-->
			<div class="tc_collbox">
				<div class="tc_coll">
					<div class="tc_coll_off" onclick="javascript:openMaster('.tc_collbox');"></div>
					<div class="tit">已成功加入收藏夹</div>
					<div class="collpro">
						<dl class="clearfix">
							<dt>
										<span><img src="http://static.uthing.cn/photo/9/68/TEJQUFg/80x80"></span>
										</dt>
							<dd>
								<div class="cpmz mt10 pb15"><strong title="塞班游艇体验6日游">塞班游艇体验6日游</strong></div>
								<div class="pb15">金额：<span class="prices">¥
										{$baseinfo.price} /起                                             </span></div>
							</dd>
						</dl>
					</div>
					<div class="btns"><a href="javascript:openMaster('.tc_collbox');">继续购物</a><a href="http://member.uthing.cn/collection/mycollection">查看收藏夹</a></div>
				</div>
			</div>
			<input type="hidden" id="year" value="2016">

			<script>
				var people_num = 1;
				var room_num = 1;
				var totalprice = {$baseinfo['price']};

				function plus_minus(type) {
					var price = {$baseinfo['price']};
					if (type == 'minus') {
						if (people_num == 1) {
							return;
						}
						people_num = people_num - 1;
						$('#people_num').val(people_num);

						$('#total_price').text('¥' + people_num * price);
						totalprice = people_num * price;

					} else {
						people_num = people_num + 1;

						$('#people_num').val(people_num);
						$('#total_price').text('¥' + people_num * price);
						totalprice = people_num * price;
					}

				}

				function plus_minus_room(type) {

					if (type == 'minus') {
						if (room_num == 1) {
							return;
						}
						room_num = room_num - 1;
						$('#room_num').val(room_num);

					} else {
						room_num = room_num + 1;

						$('#room_num').val(room_num);

					}

				}

				function sub() {
					var product_id = {$_GET['id']};
					var price = totalprice;
					var url = "{:U('submit_orders')}";
					var datetime = $('#order_date').text();
					if (datetime == "") {
						layer.alert('请填写出发日期', {
							icon: 2
						});
						$('.layui-layer-dialog').css('top', '30%');
						return;
					}
					layer.load(1);
					$('.layui-layer-loading').css('top', '50%');
					var data = {
						people_num: people_num,
						room_num: room_num,
						price: price,
						product_id: product_id,
						datetime: datetime,
						product_name: "{$baseinfo['name']}"
					}
					ajax(url, 'post', data, subback);

				}

				function subback(data) {
					layer.closeAll()
					if (data.status == 1) {
						layer.alert(data.msg, {
							icon: 1
						});
					} else {
						layer.alert(data.msg, {
							icon: 2
						});
					}

					$('.layui-layer-dialog').css('top', '30%');
				}
			</script>

	</body>

</html>